﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Xwang.Task.WebUI.Controllers
{
    public class HomeController : BaseController
    {
        IBll.ITaskJoinUserService TaskJoinUserService { get; set; }
        //
        // GET: /Home/

        public ActionResult Index()
        {
            var counts = TaskJoinUserService.GetTaskCountByGroup(LoginUserInfo.KeyId);
            ViewBag.count = counts;
            return View();
        }


        public ActionResult Calendar()
        {
            return View();
        }

        public ActionResult Task()
        {
            ViewBag.UserName = LoginUserInfo.UserName;
            ViewBag.Avatar = LoginUserInfo.UserName.Substring(0, 1);
            return View();
        }

        public ActionResult TestCalendar()
        {
            return View();
        }
    }
}
